import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/constants/font_family.dart';
import 'package:flutter_eve_plugin/pages/main/actions.dart';
import 'package:flutter_eve_plugin/utils/image_util.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';

 buildMemoryAppBarTitle(String title) {
  return AppBar(
      backgroundColor: Colors.transparent,
      elevation: 0,
      title: Text(
        title,
        style: TextStyle(
            decorationColor: Color(0x80000000),
            color: Color(0xFFEFF0F8),
            fontFamily: FontFamily.PINGFANG,
            fontSize: setTextSp(18)),
      ),
      leading: Builder(
        builder: (BuildContext context) {
          return IconButton(
            icon: Image.asset(
              imageUtilYeXiu('main/icon_back3@3x'),
              width: setRatio(31),
              height: setRatio(28),
            ),
            onPressed: () {
              Navigator.canPop(context)
                  ? Navigator.pop(context)
                  : goBackNative();
            },
          );
        },
      ));
}
